<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>p3_CSS的常用值</title>
    <style>
        h1{
            color: red;
            color: rgb(255,0,0);
            color: rgb(0,255,255);
            color: rgb(255,255,0);
            color: rgb(255,0,255);
            color: #ffffff;
            color: #aaaaaa;
            color: #ff0000;
            color: #aabbcc;
            color: #f99;
            color: #999;
            color: #888;
            color: #666;
            color: #911;
            color: #6ff;
            color: rgb(12,233,233,0.5);
        }
        .d1 {
            height: 200px;
            background-image: linear-gradient(226deg,red,cyan,purple,yellow);
        }
        .d2{

            width: 50px;
            height: 100px;
            /*插入背景图，注意背景图所处区域必须有大小*/
            background-image: url(img/mr.png);
            /*设置背景图的尺寸*/
            background-size: 50px 100px;
            /*设置背景颜色*/

        }
        .d3{
            width: 500px;
            height: 300px;
            border: 5px solid rgb(0,255,255,0.1);
            background-image: url(img/mr.png);
            /*设置背景图不能重复*/
            background-repeat: no-repeat;
            /*设置背景图位置，原点在左上角 右&下是正方向*/
            background-position: left top;
            background-position: center;
            background-position: right bottom;
            background-position: 50px 0;
            background-position: -50px 0;
            background-position: -50px 100px;
            background-position: 50% 50%;
            background-position: 100% 100%;

        }
    </style>
</head>
<body>
    <h1>测试颜色</h1>
    <div class="d1"></div>
    <div class="d2"></div>
    <div class="d3"></div>
</body>
</html>